package com.woniu.humanresource.dao;

import com.woniu.humanresource.entity.JobCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JobCategoryDao {
    //添加职位类别
    void insertJobCategory(JobCategory jobCategory);
    //查询所有职位类别
    List<JobCategory> selectAllJobCategory(@Param("pageIndex") int pageIndex,
                                           @Param("pageSize") int pageSize);
    //删除职位类别
    JobCategory selectJobCategoryByPosition(String position);
    //查询职位类别总条数
    int selectJobCategoryCount();
    //提交删除申请Jo
    void deleteApplyByPosition(String position);
    //条件查询
    List<JobCategory> selectJobCategory(@Param("jobCategory") JobCategory jobCategory,
                                        @Param("pageIndex") int pageIndex,
                                        @Param("pageSize") int pageSize);
    //条件查询总条数
    int selctJobCategoryCounts(@Param("jobCategory") JobCategory jobCategory);
    //修改职位类别
    void updateJobCategory(@Param("jobCategory") JobCategory jobCategory,
                           @Param("position") String position);
}
